package com.clstu.homeworks;

import java.util.*;

public class HomeWork03 {
    public static void main(String[] args) {
        Map m = new HashMap();
        m.put("jack",650);
        m.put("tom",1200);
        m.put("smith",2400);
        m.put("jack",2600);
        Set keyset= m.keySet();
        for (Object o :
                keyset) {
            m.put(o,((Integer)m.get(o))+100);
        }
        System.out.println("K=========");
        for (Object o :
                keyset) {
            System.out.println(o);
        }
        Collection values=m.values();
        System.out.println("v===========");
        for (Object o:values
             ) {
            System.out.println(o);
        }

    }
}
